﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PlusArquivosDigitais.Interface
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

            String ConecaoPG = "Server=localhost;port=5432; User id=tgres;Database=Testebanco;";

            Npgsql.NpgsqlConnection conn = null;

            try
            {
                conn = new Npgsql.NpgsqlConnection(ConecaoPG);
                conn.Open();
                MessageBox.Show("ok");
            }
            catch
            {
                MessageBox.Show("erro");
            }


        }
    }
}
